package com.example.qincetest.network.beans

data class ApiListResponse<T>(
    var datas: ArrayList<T>,
    var curPage: Int,
    var offset: Int,
    var over: Boolean,
    var pageCount: Int,
    var size: Int,
    var total: Int) {
    /**
     * 是否是空数据
     */
    fun isEmpty() = datas.isNullOrEmpty()

    /**
     * 是否有更多
     */
    fun isLoadMore() = (curPage * size) < total
}